package com.ihisun.tmhcms.controller.withdrawalcontroller;


import com.ihisun.tmhcms.core.dto.withdrawaldto.SearchWithdrawalDto;
import com.ihisun.tmhcms.core.service.withdrawalservice.WithdrawalService;
import com.ihisun.tmhcms.utils.ResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "提现相关Api")
@RestController
@RequestMapping("/withdrawal")
public class WithdrawalController {
    @Resource
    WithdrawalService withdrawalService;
    @PostMapping("/SearchWithdrawal")
    @ApiOperation("提现列表")
    public ResponseVo SearchWithdrawal(@RequestBody SearchWithdrawalDto searchWithdrawalDto){
        return withdrawalService.searchWithdrawalRecord(searchWithdrawalDto);
    }
}
